package net.xdlass.service.impl;

import groovy.util.logging.Slf4j;
import net.xdlass.service.NotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author Rookie
 * @date 2025年-02月-18日- 17:42
 */
@lombok.extern.slf4j.Slf4j
@Service
@Slf4j
public class NotifyServiceImpl implements NotifyService {
    @Autowired
    private RestTemplate restTemplate;
    @Override
    public void testSend() {
        ResponseEntity<String> response = restTemplate.getForEntity("http://hackinglab.cn/", String.class);
        String body = response.getBody();
        log.info("body={}",body);
    }
}
